package com.ruoyi.campus.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 报警记录对象 alarm_record
 * 
 * @author campus-alarm
 * @date 2024-01-01
 */
@TableName("alarm_record")
public class AlarmRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 报警ID */
    @TableId(type = IdType.AUTO)
    private Long alarmId;

    /** 报警编号 */
    @Excel(name = "报警编号")
    private String alarmCode;

    /** 报警类型 */
    @Excel(name = "报警类型")
    private Integer alarmType;

    /** 报警级别 */
    @Excel(name = "报警级别")
    private Integer alarmLevel;

    /** 报警标题 */
    @Excel(name = "报警标题")
    @NotBlank(message = "报警标题不能为空")
    @Size(max = 100, message = "报警标题长度不能超过100字符")
    private String alarmTitle;

    /** 报警内容 */
    @Excel(name = "报警内容")
    private String alarmContent;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    public Long getAlarmId() {
        return alarmId;
    }

    public void setAlarmId(Long alarmId) {
        this.alarmId = alarmId;
    }

    public String getAlarmCode() {
        return alarmCode;
    }

    public void setAlarmCode(String alarmCode) {
        this.alarmCode = alarmCode;
    }

    public Integer getAlarmType() {
        return alarmType;
    }

    public void setAlarmType(Integer alarmType) {
        this.alarmType = alarmType;
    }

    public Integer getAlarmLevel() {
        return alarmLevel;
    }

    public void setAlarmLevel(Integer alarmLevel) {
        this.alarmLevel = alarmLevel;
    }

    public String getAlarmTitle() {
        return alarmTitle;
    }

    public void setAlarmTitle(String alarmTitle) {
        this.alarmTitle = alarmTitle;
    }

    public String getAlarmContent() {
        return alarmContent;
    }

    public void setAlarmContent(String alarmContent) {
        this.alarmContent = alarmContent;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
} 